<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Bruger login</title>
	<link rel="stylesheet" type="text/css" href="../CSS/CSS.css" />
	<link rel="stylesheet" type="text/css" href="../CSS/header.css" />
	<script src="http://code.jquery.com/jquery-latest.min.js"></script>
	<script>
	if (!window.jQuery) {
	    document.write('<script src="../Javascript/jQuery.js"><\/script>');
	}
	</script>
	<script src="../Javascript/Popups.js"></script>
	<script>
		function Back(){
	        window.history.back();
	    }
	</script>
</head>
<body>
<?php
	include_once 'database.php' ;
	include_once 'session_start.php';
	include_once 'session_check.php';
	include_once 'header.php';
?>
<div id='page_content'>
	<div class="stuff leftbox">
		<h1>Opret ny bruger:</h1>
		<?php include_once "get_message.php" ?>
		<form action="insert_user_db.php" method="post">
			<table class="form-table">
		    	<tr>
		    		<td>
		    	        Brugernavn:
		    	    </td>
		    	    <td>
		    	        <input type="text" name="UserName" value="<?php echo session_check('Create_User','UserName')?>" />
		    	    </td>
		  	  	</tr>
		    	<tr>
			    	<td>
			            Password:
			        </td>
			        <td>
			            <input type="password" name="Password" />
	                </td>
	            </tr>
	            <tr>
	                <td>
	                    Confirm Password:
	                </td>
	                <td>
	                    <input type="password" name="CF_Password" />
	                </td>
	            </tr>
	            <tr>
	                <td><br></td>
	            </tr>  
	            <tr>
	                <td>
	                    Fornavn:
	                </td>
	                <td>
	                    <input type="text" name="F_Name" value="<?php echo session_check('Create_User','F_Name')?>"/>
	                </td>
	            </tr>
	            <tr>
	                <td>
	                    Efternavn:
	                </td>
	                <td>
	                    <input type="text" name="L_Name" value="<?php echo session_check('Create_User','L_Name')?>"/>
	                </td>
	            </tr>
	            <tr>
	                <td>
	                    E-mail:
	                </td>
	                <td>
	                    <input type="text" name="E-mail" value="<?php echo session_check('Create_User','E-mail')?>"/>
	                </td>
	            </tr>    
	            <tr>
	                <td>
	                    Land:
	                </td>
	                <td>
	                    <select name="Country">
	                        <?php include 'country_dropdown.html'?>
	                    </select>
	                </td>
	            </tr>    
	            <tr>
	                <td>
	                    Adresse:
	                </td>
	                <td>
	                    <input type="text" name="Address" value="<?php echo session_check('Create_User','Address')?>"/>
	                </td>
	            </tr>    
	            <tr>
	                <td>
	                    Postnummer:
	                </td>
	                <td>
	                    <input type="text" name="Postal_Code" value="<?php echo session_check('Create_User','Postal_Code')?>"/>
	                </td>
	            </tr>    
	            <tr>             
	                <td>
	                    <input type="submit" id="submit" value="OK" />
			    	</td>
		       	</tr>
			</table>
		</form>
	</div>
	<div class="stuff rightbox">
		<h1>Log ind:</h1>		
		<form action="user_login_db.php" method="post">
		    <table>
		    	<tr>
		        	<td>
		                Brugernavn:
		            </td>
		            <td>
		                <input type="text" name="UserName" />
		            </td>
		        </tr>
		        <tr>
		            <td>
		                Adgangskode:
		            </td>
		            <td>
		                <input type="password" name="Password" />
		            </td>
		        </tr>
		        <tr>
		            <td>
		                <input type="submit" value="Log ind" />
		            </td>    
		        </tr>
		    </table>
		</form>
	</div>
</div>
<?php include_once('footer.php') ?>
</body>
</html>